//Accepted
#include <cstdio>

int sum=29, i=0, r, g, b;
int main(){
        //freopen("in.txt","r",stdin);freopen("out.txt","w",stdout);
        scanf("%d %d %d", &r, &g, &b);
        while(r>0||g>0||b>0){
                if(i%3==0){r-=2;i++;sum++;}
                else if(i%3==1){g-=2;i++;sum++;}
                else if(i%3==2){b-=2;i++;sum++;}
        }
        printf("%d", sum);
        return 0;
}
